<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default2.aspx.cs" Inherits="TestWidget.Default2" ValidateRequest="false" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<%@ Register Assembly="System.Web.Extensions" Namespace="System.Web.UI" TagPrefix="asp" %>
<%@ Register Src="WidgetLayout.ascx" TagName="WidgetLayout" TagPrefix="uc" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <link href="GreenBlue/StyleSheet.css" type="text/css" rel="Stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
        <!-- A dummy panel to download Ajax Control Toolkit library for drap and drop that CustomDragDrop extender uses -->
        <asp:Panel ID="DummyPanel" runat="server" ></asp:Panel>
        <cc1:DragPanelExtender ID="Dummy" DragHandleID="DummyPanel" TargetControlID="DummyPanel" runat="server"></cc1:DragPanelExtender>
        
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true" LoadScriptsBeforeUI="false" ScriptMode="Release">
        </asp:ScriptManager>
        <script src="Myframework.js" type="text/javascript"></script>        
<%--        <script type="text/javascript">if( typeof Proxy == "undefined" ) window.Proxy = Dropthings.Web.Framework.ProxyAsync;</script>
--%>        <div id="contents">
            <div id="contents_wrapper">
                <div id="widget_area">
                    <div id="widget_area_wrapper">        
                        <asp:UpdatePanel ID="UpdatePanelMainContent" runat="server" UpdateMode="Conditional">
                            <ContentTemplate>
                                <asp:DropDownList ID="drgWidgetLayout" runat="server" OnSelectedIndexChanged="drgWidgetLayout_SelectedIndexChanged" AutoPostBack="True">
                                    <asp:ListItem Value="WidgetLayout2Column.ascx">WidgetLayout2Column</asp:ListItem>
                                    <asp:ListItem Value="WidgetLayout1Column.ascx">WidgetLayout1Column</asp:ListItem>
                                    <asp:ListItem Value="WidgetLayout.ascx" Selected="True">WidgetLayout</asp:ListItem>
                                </asp:DropDownList>
                                <%--<uc:WidgetLayout ID="WidgetPanelsLayout" runat="server" />--%>
                                <asp:Panel ID="LayoutPanel" runat="server" />
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </div>
                </div>
            </div>
        </div> 
    </form>
</body>
</html>
